// 常量路由配置
import err from '@/views/404/index.vue'
import indexVue from '@/views/home/index.vue'

export const constantRoute = [
  {
    path: '/login', //登录
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/', //首页
    component: indexVue,
  },
  {
    path: '/404', //404报错
    component: err,
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'not-found',
  },
]
